#include <Render/Include/TextureDX11.h>

using namespace Render;

// ========== INTERNAL METHODS ========== //

TextureDX11::TextureDX11(ID3D11Texture2D* textura2D, D3D11_TEXTURE2D_DESC textura2D_description, ID3D11ShaderResourceView* shader_resource_view)
{
    this->textura2D = textura2D;
    this->textura2D_description = textura2D_description;
    this->shader_resource_view = shader_resource_view;
}

TextureDX11::~TextureDX11(void)
{
    this->shader_resource_view->Release();
    this->textura2D->Release();
}

ID3D11ShaderResourceView* TextureDX11::getD3D11ShaderResourceView()
{
    return this->shader_resource_view;
}
